package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_ghost_attack", desc = "鬼市攻击记录", autoSave = true, uploadCk = true)
public class LogGhostAttack extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "事件类型，1boss，2货箱，3闷包")
    private int eventType;
    @FieldTypeAnnotation(desc = "事件参数")
    private String eventParam;
    @FieldTypeAnnotation(desc = "门客id")
    private int patronsId;
    @FieldTypeAnnotation(desc = "伤害")
    private long damage;
    @FieldTypeAnnotation(desc = "是否击杀，0未击杀，1击杀")
    private boolean kill;
    @FieldTypeAnnotation(desc = "攻击奖励")
    private String reward = "";

    public LogGhostAttack(int activityId, long userId, int eventType, String eventParam, int patronsId, long damage, boolean kill, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.eventType = eventType;
        this.eventParam = eventParam;
        this.patronsId = patronsId;
        this.damage = damage;
        this.kill = kill;
        this.reward = reward;
    }

    public long getUserId() {
        return userId;
    }

}
